package database;

import java.io.IOException;
import java.util.List;

import extractor.StatusData;

/**
 * Access point for writing and retrieving performance data form a database.
 */
public interface DatabaseProxy {
	
	/**
	 * Method for putting StatusData into the Database.
	 * 
	 * @param data Instance of StatusData to be stored in the database.
	 * @throws IOException Thrown when a problem occurs with the database making it unaccessible.
	 */
	void writeStatusData(StatusData data) throws IOException;
	
	/**
	 * Method for getting all StatusData from the Database.
	 */
	List<StatusData> getAllStatusData() throws IOException;
}
